package com.kfm.base.io.b;

import java.io.FileOutputStream;

public class Demo06 {

    public static void main(String[] args) {
        try {
            FileOutputStream fos = new FileOutputStream("d:/io/file-out.txt");
            // 写单个字符
            fos.write('a');
            fos.write('b');
            fos.write('\r');
            fos.write('\n');

            fos.write("马上放假了".getBytes());

            // 关闭流
            fos.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
